package com.adee.java;

import java.util.Random;

/**
 * Random在高并发下CAS有性能问题，应该用ThreadLocalRandom.current()
 */
public class Test052_Random {
    public static void main(String[] args) {
        Random random = new Random();
        System.out.println(random.nextInt(1));
    }
}
